\hypertarget{gl_helper_8hpp}{\section{gl\-Helper.\-hpp File Reference}
\label{gl_helper_8hpp}\index{gl\-Helper.\-hpp@{gl\-Helper.\-hpp}}
}
{\ttfamily \#include $<$G\-L/gl.\-h$>$}\\*
{\ttfamily \#include $<$G\-L/glu.\-h$>$}\\*
{\ttfamily \#include $<$G\-L/glut.\-h$>$}\\*
{\ttfamily \#include $<$string$>$}\\*
{\ttfamily \#include $<$fstream$>$}\\*
{\ttfamily \#include $<$iostream$>$}\\*
{\ttfamily \#include $<$sstream$>$}\\*
{\ttfamily \#include $<$cstdlib$>$}\\*
{\ttfamily \#include $<$math.\-h$>$}\\*
{\ttfamily \#include $<$unistd.\-h$>$}\\*
{\ttfamily \#include $<$ctime$>$}\\*
{\ttfamily \#include \char`\"{}types.\-hpp\char`\"{}}\\*
Include dependency graph for gl\-Helper.\-hpp\-:
% FIG 0
This graph shows which files directly or indirectly include this file\-:
% FIG 1
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{gl_helper_8hpp_a0be26f297e969c1bec3fabc753fbcee8}{init\-Core} ()
\item 
void \hyperlink{gl_helper_8hpp_af151554d532190beb0a1fc8e2a2e1445}{draw\-Square} (int side)
\item 
void \hyperlink{gl_helper_8hpp_a7a81891b1569e58a540aa32925d34120}{draw\-Teapot} (float \hyperlink{main_8cpp_ab8ef1bf8a70cc07c6d55823c390a7e76}{angle}, float state)
\item 
void \hyperlink{gl_helper_8hpp_ab8aa40f8b094ca99196d3cb4b5df5060}{draw\-Crap} ()
\item 
void \hyperlink{gl_helper_8hpp_af09d4e544e73d211b48d2f6adc044a08}{draw\-Circle} (float rad)
\item 
void \hyperlink{gl_helper_8hpp_a7c8a4c51d86286f4779ab2e9d2625aa7}{normalize} (\hyperlink{structs__vector}{s\-\_\-vector} \&v)
\item 
float \hyperlink{gl_helper_8hpp_acda2c0df466197df16279cde740ead0f}{dot\-Product} (\hyperlink{structs__vector}{s\-\_\-vector} v1, \hyperlink{structs__vector}{s\-\_\-vector} v2)
\item 
float \hyperlink{gl_helper_8hpp_af530c2beb2129c3fab823e98e5749b88}{abs\-Vector} (\hyperlink{structs__vector}{s\-\_\-vector} v)
\item 
float \hyperlink{gl_helper_8hpp_a0e15415718a6e1b6bb503e99e3e3f1f6}{get\-Mag} (\hyperlink{structs__vector}{s\-\_\-vector} v)
\item 
float \hyperlink{gl_helper_8hpp_a37ba1d8958dbbffe2d18498bf247fe1e}{get\-Angle} (\hyperlink{structs__vector}{s\-\_\-vector} v1, \hyperlink{structs__vector}{s\-\_\-vector} v2)
\item 
\hyperlink{structs__vector}{s\-\_\-vector} \hyperlink{gl_helper_8hpp_a0986cafe89bc7ab4b7773366213f0781}{operator$\ast$} (float const \&scalar, \hyperlink{structs__vector}{s\-\_\-vector} const \&v)
\item 
\hyperlink{structs__vector}{s\-\_\-vector} \hyperlink{gl_helper_8hpp_a5354ecce7ab95921c6e47ed48e36e558}{operator+} (\hyperlink{structs__vector}{s\-\_\-vector} const \&v1, \hyperlink{structs__vector}{s\-\_\-vector} const \&v2)
\item 
\hyperlink{structs__vector}{s\-\_\-vector} \hyperlink{gl_helper_8hpp_a1dcd1211f392e4c04b17bdbb5329b64e}{operator-\/} (\hyperlink{structs__vector}{s\-\_\-vector} const \&v1, \hyperlink{structs__vector}{s\-\_\-vector} const \&v2)
\end{DoxyCompactItemize}


\subsection{Function Documentation}
\hypertarget{gl_helper_8hpp_af530c2beb2129c3fab823e98e5749b88}{\index{gl\-Helper.\-hpp@{gl\-Helper.\-hpp}!abs\-Vector@{abs\-Vector}}
\index{abs\-Vector@{abs\-Vector}!glHelper.hpp@{gl\-Helper.\-hpp}}
\subsubsection[{abs\-Vector}]{\setlength{\rightskip}{0pt plus 5cm}float {\bf abs\-Vector} (
\begin{DoxyParamCaption}
\item[{{\bf s\-\_\-vector}}]{v}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}\label{gl_helper_8hpp_af530c2beb2129c3fab823e98e5749b88}


Definition at line 32 of file gl\-Helper.\-hpp.



References s\-\_\-vector\-::x, and s\-\_\-vector\-::y.



Referenced by get\-Angle(), and normalize().



Here is the caller graph for this function\-:
% FIG 2


\hypertarget{gl_helper_8hpp_acda2c0df466197df16279cde740ead0f}{\index{gl\-Helper.\-hpp@{gl\-Helper.\-hpp}!dot\-Product@{dot\-Product}}
\index{dot\-Product@{dot\-Product}!glHelper.hpp@{gl\-Helper.\-hpp}}
\subsubsection[{dot\-Product}]{\setlength{\rightskip}{0pt plus 5cm}float {\bf dot\-Product} (
\begin{DoxyParamCaption}
\item[{{\bf s\-\_\-vector}}]{v1, }
\item[{{\bf s\-\_\-vector}}]{v2}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}\label{gl_helper_8hpp_acda2c0df466197df16279cde740ead0f}


Definition at line 29 of file gl\-Helper.\-hpp.



References s\-\_\-vector\-::x, and s\-\_\-vector\-::y.



Referenced by World\-::apply\-Collision(), and get\-Angle().



Here is the caller graph for this function\-:
% FIG 3


\hypertarget{gl_helper_8hpp_af09d4e544e73d211b48d2f6adc044a08}{\index{gl\-Helper.\-hpp@{gl\-Helper.\-hpp}!draw\-Circle@{draw\-Circle}}
\index{draw\-Circle@{draw\-Circle}!glHelper.hpp@{gl\-Helper.\-hpp}}
\subsubsection[{draw\-Circle}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf draw\-Circle} (
\begin{DoxyParamCaption}
\item[{float}]{rad}
\end{DoxyParamCaption}
)}}\label{gl_helper_8hpp_af09d4e544e73d211b48d2f6adc044a08}


Definition at line 49 of file gl\-Helper.\-cpp.



References P\-I.



Referenced by Creature\-::paint().



Here is the caller graph for this function\-:
% FIG 4


\hypertarget{gl_helper_8hpp_ab8aa40f8b094ca99196d3cb4b5df5060}{\index{gl\-Helper.\-hpp@{gl\-Helper.\-hpp}!draw\-Crap@{draw\-Crap}}
\index{draw\-Crap@{draw\-Crap}!glHelper.hpp@{gl\-Helper.\-hpp}}
\subsubsection[{draw\-Crap}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf draw\-Crap} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{gl_helper_8hpp_ab8aa40f8b094ca99196d3cb4b5df5060}


Definition at line 36 of file gl\-Helper.\-cpp.



References angle, D\-E\-G\-\_\-\-T\-O\-\_\-\-R\-A\-D, draw\-Square(), and draw\-Teapot().



Here is the call graph for this function\-:
% FIG 5


\hypertarget{gl_helper_8hpp_af151554d532190beb0a1fc8e2a2e1445}{\index{gl\-Helper.\-hpp@{gl\-Helper.\-hpp}!draw\-Square@{draw\-Square}}
\index{draw\-Square@{draw\-Square}!glHelper.hpp@{gl\-Helper.\-hpp}}
\subsubsection[{draw\-Square}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf draw\-Square} (
\begin{DoxyParamCaption}
\item[{int}]{side}
\end{DoxyParamCaption}
)}}\label{gl_helper_8hpp_af151554d532190beb0a1fc8e2a2e1445}


Definition at line 9 of file gl\-Helper.\-cpp.



Referenced by draw\-Crap().



Here is the caller graph for this function\-:
% FIG 6


\hypertarget{gl_helper_8hpp_a7a81891b1569e58a540aa32925d34120}{\index{gl\-Helper.\-hpp@{gl\-Helper.\-hpp}!draw\-Teapot@{draw\-Teapot}}
\index{draw\-Teapot@{draw\-Teapot}!glHelper.hpp@{gl\-Helper.\-hpp}}
\subsubsection[{draw\-Teapot}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf draw\-Teapot} (
\begin{DoxyParamCaption}
\item[{float}]{angle, }
\item[{float}]{state}
\end{DoxyParamCaption}
)}}\label{gl_helper_8hpp_a7a81891b1569e58a540aa32925d34120}


Definition at line 23 of file gl\-Helper.\-cpp.



Referenced by draw\-Crap().



Here is the caller graph for this function\-:
% FIG 7


\hypertarget{gl_helper_8hpp_a37ba1d8958dbbffe2d18498bf247fe1e}{\index{gl\-Helper.\-hpp@{gl\-Helper.\-hpp}!get\-Angle@{get\-Angle}}
\index{get\-Angle@{get\-Angle}!glHelper.hpp@{gl\-Helper.\-hpp}}
\subsubsection[{get\-Angle}]{\setlength{\rightskip}{0pt plus 5cm}float {\bf get\-Angle} (
\begin{DoxyParamCaption}
\item[{{\bf s\-\_\-vector}}]{v1, }
\item[{{\bf s\-\_\-vector}}]{v2}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}\label{gl_helper_8hpp_a37ba1d8958dbbffe2d18498bf247fe1e}


Definition at line 38 of file gl\-Helper.\-hpp.



References abs\-Vector(), and dot\-Product().



Here is the call graph for this function\-:
% FIG 8


\hypertarget{gl_helper_8hpp_a0e15415718a6e1b6bb503e99e3e3f1f6}{\index{gl\-Helper.\-hpp@{gl\-Helper.\-hpp}!get\-Mag@{get\-Mag}}
\index{get\-Mag@{get\-Mag}!glHelper.hpp@{gl\-Helper.\-hpp}}
\subsubsection[{get\-Mag}]{\setlength{\rightskip}{0pt plus 5cm}float {\bf get\-Mag} (
\begin{DoxyParamCaption}
\item[{{\bf s\-\_\-vector}}]{v}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}\label{gl_helper_8hpp_a0e15415718a6e1b6bb503e99e3e3f1f6}


Definition at line 35 of file gl\-Helper.\-hpp.



References s\-\_\-vector\-::x, and s\-\_\-vector\-::y.



Referenced by World\-::apply\-Collision().



Here is the caller graph for this function\-:
% FIG 9


\hypertarget{gl_helper_8hpp_a0be26f297e969c1bec3fabc753fbcee8}{\index{gl\-Helper.\-hpp@{gl\-Helper.\-hpp}!init\-Core@{init\-Core}}
\index{init\-Core@{init\-Core}!glHelper.hpp@{gl\-Helper.\-hpp}}
\subsubsection[{init\-Core}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf init\-Core} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{gl_helper_8hpp_a0be26f297e969c1bec3fabc753fbcee8}


Definition at line 108 of file main.\-cpp.



References C\-R\-\_\-\-N\-U\-M, World\-::init(), world, X\-Size, and Y\-Size.



Referenced by main().



Here is the call graph for this function\-:
% FIG 10




Here is the caller graph for this function\-:
% FIG 11


\hypertarget{gl_helper_8hpp_a7c8a4c51d86286f4779ab2e9d2625aa7}{\index{gl\-Helper.\-hpp@{gl\-Helper.\-hpp}!normalize@{normalize}}
\index{normalize@{normalize}!glHelper.hpp@{gl\-Helper.\-hpp}}
\subsubsection[{normalize}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf normalize} (
\begin{DoxyParamCaption}
\item[{{\bf s\-\_\-vector} \&}]{v}
\end{DoxyParamCaption}
)}}\label{gl_helper_8hpp_a7c8a4c51d86286f4779ab2e9d2625aa7}


Definition at line 59 of file gl\-Helper.\-cpp.



References abs\-Vector(), s\-\_\-vector\-::x, and s\-\_\-vector\-::y.



Here is the call graph for this function\-:
% FIG 12


\hypertarget{gl_helper_8hpp_a0986cafe89bc7ab4b7773366213f0781}{\index{gl\-Helper.\-hpp@{gl\-Helper.\-hpp}!operator$\ast$@{operator$\ast$}}
\index{operator$\ast$@{operator$\ast$}!glHelper.hpp@{gl\-Helper.\-hpp}}
\subsubsection[{operator$\ast$}]{\setlength{\rightskip}{0pt plus 5cm}{\bf s\-\_\-vector} operator$\ast$ (
\begin{DoxyParamCaption}
\item[{float const \&}]{scalar, }
\item[{{\bf s\-\_\-vector} const \&}]{v}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}\label{gl_helper_8hpp_a0986cafe89bc7ab4b7773366213f0781}


Definition at line 43 of file gl\-Helper.\-hpp.



References s\-\_\-vector\-::x, and s\-\_\-vector\-::y.

\hypertarget{gl_helper_8hpp_a5354ecce7ab95921c6e47ed48e36e558}{\index{gl\-Helper.\-hpp@{gl\-Helper.\-hpp}!operator+@{operator+}}
\index{operator+@{operator+}!glHelper.hpp@{gl\-Helper.\-hpp}}
\subsubsection[{operator+}]{\setlength{\rightskip}{0pt plus 5cm}{\bf s\-\_\-vector} operator+ (
\begin{DoxyParamCaption}
\item[{{\bf s\-\_\-vector} const \&}]{v1, }
\item[{{\bf s\-\_\-vector} const \&}]{v2}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}\label{gl_helper_8hpp_a5354ecce7ab95921c6e47ed48e36e558}


Definition at line 46 of file gl\-Helper.\-hpp.



References s\-\_\-vector\-::x, and s\-\_\-vector\-::y.

\hypertarget{gl_helper_8hpp_a1dcd1211f392e4c04b17bdbb5329b64e}{\index{gl\-Helper.\-hpp@{gl\-Helper.\-hpp}!operator-\/@{operator-\/}}
\index{operator-\/@{operator-\/}!glHelper.hpp@{gl\-Helper.\-hpp}}
\subsubsection[{operator-\/}]{\setlength{\rightskip}{0pt plus 5cm}{\bf s\-\_\-vector} operator-\/ (
\begin{DoxyParamCaption}
\item[{{\bf s\-\_\-vector} const \&}]{v1, }
\item[{{\bf s\-\_\-vector} const \&}]{v2}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}\label{gl_helper_8hpp_a1dcd1211f392e4c04b17bdbb5329b64e}


Definition at line 49 of file gl\-Helper.\-hpp.



References s\-\_\-vector\-::x, and s\-\_\-vector\-::y.

